#ifndef _CHARACTERMANAGER_H_
#define _CHARACTERMANAGER_H_

#include <netlib/session/session.h>
#include <utillib/util/singleton.h>
#include <utillib/memory/memorypool.h>
#include "character/character.h"
#include <utillib/stl/map.h>

class CharacterManager
{
public:
	CharacterManager();
	virtual ~CharacterManager();

	SingletonInstance( CharacterManager );

	Character *newCharacter( netlib::session::Session *session , char *userID );
private:
	utillib::stl::MapWithString < Character * > m_characterList;
	utillib::memory::MemoryPool < Character > m_characterPool;
};

#endif